<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Clojure documentation browser</title><style>
.library
{
  padding: 0.5em 0 0 0 
}
.all-libs-toggle,.library-contents-toggle
{
 font-size: small;
}
.all-libs-toggle a,.library-contents-toggle a
{
 color: white
}
.library-member-doc-whitespace
{
 white-space: pre
}
.library-member-source-toggle
{
  font-size: small;
  margin-top: 0.5em
}
.library-member-source
{
  display: none;
  border-left: solid lightblue 
}
.library-member-docs
{
  font-family:monospace
}
.library-member-arglists
{
  font-family: monospace
}
.library-member-type
{
  font-weight: bold; 
  font-size: small;
  font-style: italic;
  color: darkred
}
.lib-links
{
  margin: 0 0 1em 0
}

.lib-link-header
{
  color: white;
  background: darkgreen;
  width: 100%
}

.library-name 
{ 
  color: white;
  background: darkblue;
  width: 100%
}

.missing-library
{
  color: darkred; 
  margin: 0 0 1em 0 
}

.library-members
{
  list-style: none
}

.library-member-name
{
  font-weight: bold;
  font-size: 105%
}</style><script language="JavaScript" type="text/javascript"> // <![CDATA[

function getElem(id)
{
  if( document.getElementById )
  {
    return document.getElementById( id )
  }
  else if ( document.all )
  {
    return eval( 'document.all.' + id )
  }
  else
    return false;
}

function setDisplayStyle(id,displayStyle)
{
  var elem = getElem (id)
  if (elem)
  {
    elem.style.display = displayStyle
  }

}

function setLinkToggleText (id, text)
{
 var elem = getElem (id)
 if (elem)
 {
   elem.innerHTML = text
 }
}

function collapse(id)
{
  setDisplayStyle (id, 'none')
}

function expand (id)
{
  setDisplayStyle (id, 'block')
}

function toggleSource( id )
{
  toggle(id, 'linkto-' + id, 'Hide Source', 'Show Source')
}

function toggle(targetid, linkid, textWhenOpen, textWhenClosed)
{
  var elem = getElem (targetid)
  var link = getElem (linkid)

  if (elem && link)
  {
    var isOpen = false
    if (elem.style.display == '')
    {
      isOpen = link.innerHTML == textWhenOpen
    }
    else if( elem.style.display == 'block' )
    {
      isOpen = true
    }
    
    if (isOpen)
    {
      elem.style.display = 'none'
      link.innerHTML = textWhenClosed
    }
    else
    {
      elem.style.display = 'block'
      link.innerHTML = textWhenOpen
    }
  }
}

      //]]>
</script><script language="JavaScript" type="text/javascript">// <![CDATA[!
function expandAllNamespaces()
{
expand(&apos;library-contents-user.newMenu&apos;);
setLinkToggleText(&apos;library-contents-toggle-user.newMenu&apos;, &apos;-&apos;);
expand(&apos;library-contents-user.commonFunctions&apos;);
setLinkToggleText(&apos;library-contents-toggle-user.commonFunctions&apos;, &apos;-&apos;);
expand(&apos;library-contents-server.readbinfile&apos;);
setLinkToggleText(&apos;library-contents-toggle-server.readbinfile&apos;, &apos;-&apos;);
expand(&apos;library-contents-server.dbmain&apos;);
setLinkToggleText(&apos;library-contents-toggle-server.dbmain&apos;, &apos;-&apos;);
expand(&apos;library-contents-server.servidor&apos;);
setLinkToggleText(&apos;library-contents-toggle-server.servidor&apos;, &apos;-&apos;);
expand(&apos;library-contents-user.cliente&apos;);
setLinkToggleText(&apos;library-contents-toggle-user.cliente&apos;, &apos;-&apos;);
expand(&apos;library-contents-start&apos;);
setLinkToggleText(&apos;library-contents-toggle-start&apos;, &apos;-&apos;);

}function collapseAllNamespaces()
{
collapse(&apos;library-contents-user.newMenu&apos;);
setLinkToggleText(&apos;library-contents-toggle-user.newMenu&apos;, &apos;+&apos;);
collapse(&apos;library-contents-user.commonFunctions&apos;);
setLinkToggleText(&apos;library-contents-toggle-user.commonFunctions&apos;, &apos;+&apos;);
collapse(&apos;library-contents-server.readbinfile&apos;);
setLinkToggleText(&apos;library-contents-toggle-server.readbinfile&apos;, &apos;+&apos;);
collapse(&apos;library-contents-server.dbmain&apos;);
setLinkToggleText(&apos;library-contents-toggle-server.dbmain&apos;, &apos;+&apos;);
collapse(&apos;library-contents-server.servidor&apos;);
setLinkToggleText(&apos;library-contents-toggle-server.servidor&apos;, &apos;+&apos;);
collapse(&apos;library-contents-user.cliente&apos;);
setLinkToggleText(&apos;library-contents-toggle-user.cliente&apos;, &apos;+&apos;);
collapse(&apos;library-contents-start&apos;);
setLinkToggleText(&apos;library-contents-toggle-start&apos;, &apos;+&apos;);

}
// ]]></script></head><body><div class="lib-links"><div class="lib-link-header">Namespaces<span class="all-libs-toggle"> [ <a href="javascript:expandAllNamespaces()">Expand All</a> ] [ <a href="javascript:collapseAllNamespaces()">Collapse All</a> ]</span></div><a class="lib-link" href="#library-server.dbmain">server.dbmain</a> <a class="lib-link" href="#library-server.readbinfile">server.readbinfile</a> <a class="lib-link" href="#library-server.servidor">server.servidor</a> <a class="lib-link" href="#library-start">start</a> <a class="lib-link" href="#library-user.cliente">user.cliente</a> <a class="lib-link" href="#library-user.commonFunctions">user.commonFunctions</a> <a class="lib-link" href="#library-user.newMenu">user.newMenu</a></div><div class="library"><a name="library-server.dbmain"/><div class="library-name"><span class="library-contents-toggle">[ <a id="library-contents-toggle-server.dbmain" href="javascript:toggle(&apos;library-contents-server.dbmain&apos;, &apos;library-contents-toggle-server.dbmain&apos;, &apos;-&apos;, &apos;+&apos;)">-</a> ] </span>server.dbmain</div><div class="library-contents" id="library-contents-server.dbmain"><div class="library-member-links"><a class="lib-member-link" href="#member-server.dbmain-create-record">create-record</a> <a class="lib-member-link" href="#member-server.dbmain-delete-record">delete-record</a> <a class="lib-member-link" href="#member-server.dbmain-find-in-db">find-in-db</a> <a class="lib-member-link" href="#member-server.dbmain-map-a-map">map-a-map</a> <a class="lib-member-link" href="#member-server.dbmain-matches-criteria">matches-criteria</a> <a class="lib-member-link" href="#member-server.dbmain-move-n-records">move-n-records</a> <a class="lib-member-link" href="#member-server.dbmain-move-pointer">move-pointer</a> <a class="lib-member-link" href="#member-server.dbmain-off-first">off-first</a> <a class="lib-member-link" href="#member-server.dbmain-read-record">read-record</a> <a class="lib-member-link" href="#member-server.dbmain-update-one-value">update-one-value</a> <a class="lib-member-link" href="#member-server.dbmain-update-record">update-record</a> <a class="lib-member-link" href="#member-server.dbmain-write-one-value">write-one-value</a></div><ol class="library-members"><li class="library-member"><a name="member-server.dbmain-create-record"/><dl class="library-member-table"><dt class="library-member-name">create-record</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([filename data])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Creates a new record in the database and returns its record number.</div><div class="library-member-doc-line">	It may occupy a deleted record, or create a new one at the end.</div><div class="library-member-doc-line">	filename -- the name of the database where the record will be created</div><div class="library-member-doc-line">	data -- a map with the form {:field value}, containing the data of the new record</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-delete-record"/><dl class="library-member-table"><dt class="library-member-name">delete-record</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([filename rec-no])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Deletes the specified record number in the specified file</div><div class="library-member-doc-line">	filename -- the database name where the record will be erased</div><div class="library-member-doc-line">	rec-no -- the number of the record that will be erased</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-find-in-db"/><dl class="library-member-table"><dt class="library-member-name">find-in-db</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([criteria filename])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Finds the record numbers that match the specified criteria in the specified file </div><div class="library-member-doc-line">	and returns a list of them. Equivalent to the method find.</div><div class="library-member-doc-line">	criteria -- a map with the form {:field value}, where value is the criteria </div><div class="library-member-doc-line">	corresponding to the field that will be evaluated.</div><div class="library-member-doc-line">	filename -- the name of the database where the search will be performed</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-map-a-map"/><dl class="library-member-table"><dt class="library-member-name">map-a-map</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([function dictionary])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Applies the function to the values of the map, and returns the new map</div><div class="library-member-doc-line">	functions --  the function to apply</div><div class="library-member-doc-line">	dictionary -- the map where the operations will be performed</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-matches-criteria"/><dl class="library-member-table"><dt class="library-member-name">matches-criteria</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([record criteria])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Returns whether or not (a boolean) the map of records matches the map of</div><div class="library-member-doc-line">	criteria. A value is considered to pass the criteria if the record</div><div class="library-member-doc-line">	contains the same value as the criteria, or begins with the same characters.</div><div class="library-member-doc-line">	E.g. Petter matches Pet and Petter and Petterer, but does not match Pat nor Patter</div><div class="library-member-doc-line">	the fields and values contained in critera may be same or less than those in record.</div><div class="library-member-doc-line">	In any case, only those keys that match will be evaluated.</div><div class="library-member-doc-line">	record -- a map with the form (:field value}</div><div class="library-member-doc-line">	criteria -- a map with the form {:field value}</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-move-n-records"/><dl class="library-member-table"><dt class="library-member-name">move-n-records</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([file fields n])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Moves the file pointer n records</div><div class="library-member-doc-line">	file -- the file from which the pointer will be obtained</div><div class="library-member-doc-line">	fields --the fields that the database&apos;s schema has</div><div class="library-member-doc-line">	n -- the number of records that the pointer will be moved</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-move-pointer"/><dl class="library-member-table"><dt class="library-member-name">move-pointer</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([rafile rec-no])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Moves the file pointer to the indicated rec-no</div><div class="library-member-doc-line">	rafile -- a Random Acces File where the pointer will be moved</div><div class="library-member-doc-line">	rec-no -- the record number where the pointer wants to be moved to</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-off-first"/><dl class="library-member-table"><dt class="library-member-name">off-first</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([a-string])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Takes off the first character of a String.</div><div class="library-member-doc-line">	In case its empty, the returned String will be empty as well.</div><div class="library-member-doc-line">	a-string -- a String containing 0 or more characters</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-read-record"/><dl class="library-member-table"><dt class="library-member-name">read-record</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([file rec-number])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Reads a record from the file and returns a map where</div><div class="library-member-doc-line">	each element is a record value and its key is the field name</div><div class="library-member-doc-line">	file -- the database where the record will be read from </div><div class="library-member-doc-line">	rec-number -- the number of the record in the database expected to be read</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-update-one-value"/><dl class="library-member-table"><dt class="library-member-name">update-one-value</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([filename rec-no data])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Same as update-record, but updates just one data at a time</div><div class="library-member-doc-line">	the arguments are therefore documented in update-record</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-update-record"/><dl class="library-member-table"><dt class="library-member-name">update-record</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([filename rec-no data])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Updates a record&apos;s values according to the given data</div><div class="library-member-doc-line">	filename -- the database name where the record will be updated</div><div class="library-member-doc-line">	rec-no -- the number of record that will be updated</div><div class="library-member-doc-line">	data -- a map with the for {:field value}, containig the new values for the record</div></div></dd></dl></li><li class="library-member"><a name="member-server.dbmain-write-one-value"/><dl class="library-member-table"><dt class="library-member-name">write-one-value</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([filename value size])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Writes just one value for the new record</div><div class="library-member-doc-line">	filename -- the database name, where the value will be written</div><div class="library-member-doc-line">	value -- a String with the data to be written</div><div class="library-member-doc-line">	size -- a number indicating the size of the value in bytes</div></div></dd></dl></li></ol></div></div><div class="library"><a name="library-server.readbinfile"/><div class="library-name"><span class="library-contents-toggle">[ <a id="library-contents-toggle-server.readbinfile" href="javascript:toggle(&apos;library-contents-server.readbinfile&apos;, &apos;library-contents-toggle-server.readbinfile&apos;, &apos;-&apos;, &apos;+&apos;)">-</a> ] </span>server.readbinfile</div><div class="library-contents" id="library-contents-server.readbinfile"><div class="library-member-links"><a class="lib-member-link" href="#member-server.readbinfile-read-bin-file">read-bin-file</a> <a class="lib-member-link" href="#member-server.readbinfile-read-fields-meta">read-fields-meta</a> <a class="lib-member-link" href="#member-server.readbinfile-read-one-record">read-one-record</a> <a class="lib-member-link" href="#member-server.readbinfile-read-records">read-records</a> <a class="lib-member-link" href="#member-server.readbinfile-read-str-len">read-str-len</a></div><ol class="library-members"><li class="library-member"><a name="member-server.readbinfile-read-bin-file"/><dl class="library-member-table"><dt class="library-member-name">read-bin-file</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([file-name])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Reads a binary file and returns a vector with its information.</div></div></dd></dl></li><li class="library-member"><a name="member-server.readbinfile-read-fields-meta"/><dl class="library-member-table"><dt class="library-member-name">read-fields-meta</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([file num-fields])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Reads the meta-data of all the fields from the given file. You must specify </div><div class="library-member-doc-line">  the total number of fields.</div></div></dd></dl></li><li class="library-member"><a name="member-server.readbinfile-read-one-record"/><dl class="library-member-table"><dt class="library-member-name">read-one-record</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([file fields])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Reads one individual record from the given file. You must specify a vector </div><div class="library-member-doc-line">  with the fields&apos; meta-data.</div></div></dd></dl></li><li class="library-member"><a name="member-server.readbinfile-read-records"/><dl class="library-member-table"><dt class="library-member-name">read-records</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([file fields])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Reads all the individual records of the file.</div></div></dd></dl></li><li class="library-member"><a name="member-server.readbinfile-read-str-len"/><dl class="library-member-table"><dt class="library-member-name">read-str-len</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([file n])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Read the next n bytes from file and create a string.</div></div></dd></dl></li></ol></div></div><div class="library"><a name="library-server.servidor"/><div class="library-name"><span class="library-contents-toggle">[ <a id="library-contents-toggle-server.servidor" href="javascript:toggle(&apos;library-contents-server.servidor&apos;, &apos;library-contents-toggle-server.servidor&apos;, &apos;-&apos;, &apos;+&apos;)">-</a> ] </span>server.servidor</div><div class="library-contents" id="library-contents-server.servidor"><div class="library-member-links"><a class="lib-member-link" href="#member-server.servidor-*input*">*input*</a> <a class="lib-member-link" href="#member-server.servidor-*port2*">*port2*</a> <a class="lib-member-link" href="#member-server.servidor-agent-actions">agent-actions</a> <a class="lib-member-link" href="#member-server.servidor-copy-database">copy-database</a> <a class="lib-member-link" href="#member-server.servidor-send-msg">send-msg</a> <a class="lib-member-link" href="#member-server.servidor-serve">serve</a> <a class="lib-member-link" href="#member-server.servidor-server-add">server-add</a> <a class="lib-member-link" href="#member-server.servidor-server-delete">server-delete</a> <a class="lib-member-link" href="#member-server.servidor-server-reload">server-reload</a> <a class="lib-member-link" href="#member-server.servidor-server-update">server-update</a></div><ol class="library-members"><li class="library-member"><a name="member-server.servidor-*input*"/><dl class="library-member-table"><dt class="library-member-name">*input*</dt><dd><div class="library-member-info"><span class="library-member-type">var</span> <span class="library-member-arglists"></span></div><div class="library-member-docs"/></dd></dl></li><li class="library-member"><a name="member-server.servidor-*port2*"/><dl class="library-member-table"><dt class="library-member-name">*port2*</dt><dd><div class="library-member-info"><span class="library-member-type">var</span> <span class="library-member-arglists"></span></div><div class="library-member-docs"/></dd></dl></li><li class="library-member"><a name="member-server.servidor-agent-actions"/><dl class="library-member-table"><dt class="library-member-name">agent-actions</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([ag socket])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Actions made by the agent attending the current request.</div><div class="library-member-doc-line">		 ag -- agent in this thread</div><div class="library-member-doc-line">		 socket -- socket used for this request</div></div></dd></dl></li><li class="library-member"><a name="member-server.servidor-copy-database"/><dl class="library-member-table"><dt class="library-member-name">copy-database</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([socket])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Makes a copy of the current database and sends it to the client</div><div class="library-member-doc-line">	 socket -- socket used to send the copied database</div></div></dd></dl></li><li class="library-member"><a name="member-server.servidor-send-msg"/><dl class="library-member-table"><dt class="library-member-name">send-msg</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([msg out])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Sends msg through out</div><div class="library-member-doc-line">		 msg -- message to be sent</div><div class="library-member-doc-line">		 out -- socket Output Stream through which the msg will be sent</div></div></dd></dl></li><li class="library-member"><a name="member-server.servidor-serve"/><dl class="library-member-table"><dt class="library-member-name">serve</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Attends petitions using an agent and sendign it to fulfill a request</div></div></dd></dl></li><li class="library-member"><a name="member-server.servidor-server-add"/><dl class="library-member-table"><dt class="library-member-name">server-add</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([socket])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Runs the server-side protocol that adds a new record into the server&apos;s </div><div class="library-member-doc-line">		database and sends it back to the client.</div></div></dd></dl></li><li class="library-member"><a name="member-server.servidor-server-delete"/><dl class="library-member-table"><dt class="library-member-name">server-delete</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([socket])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Runs the server-side protocol that deletes a record</div></div></dd></dl></li><li class="library-member"><a name="member-server.servidor-server-reload"/><dl class="library-member-table"><dt class="library-member-name">server-reload</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([socket])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Runs the server-side protocol that reloads the clients&apos; database</div></div></dd></dl></li><li class="library-member"><a name="member-server.servidor-server-update"/><dl class="library-member-table"><dt class="library-member-name">server-update</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([socket])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Runs the server-side protocol that updates a record</div></div></dd></dl></li></ol></div></div><div class="library"><a name="library-start"/><div class="library-name"><span class="library-contents-toggle">[ <a id="library-contents-toggle-start" href="javascript:toggle(&apos;library-contents-start&apos;, &apos;library-contents-toggle-start&apos;, &apos;-&apos;, &apos;+&apos;)">-</a> ] </span>start</div><div class="library-contents" id="library-contents-start"><div class="library-member-links"><a class="lib-member-link" href="#member-start-printInstructions">printInstructions</a></div><ol class="library-members"><li class="library-member"><a name="member-start-printInstructions"/><dl class="library-member-table"><dt class="library-member-name">printInstructions</dt><dd><div class="library-member-info"><span class="library-member-type">unknown</span> <span class="library-member-arglists"></span></div><div class="library-member-docs"/></dd></dl></li></ol></div></div><div class="library"><a name="library-user.cliente"/><div class="library-name"><span class="library-contents-toggle">[ <a id="library-contents-toggle-user.cliente" href="javascript:toggle(&apos;library-contents-user.cliente&apos;, &apos;library-contents-toggle-user.cliente&apos;, &apos;-&apos;, &apos;+&apos;)">-</a> ] </span>user.cliente</div><div class="library-contents" id="library-contents-user.cliente"><div class="library-member-links"><a class="lib-member-link" href="#member-user.cliente-*host*">*host*</a> <a class="lib-member-link" href="#member-user.cliente-*port*">*port*</a> <a class="lib-member-link" href="#member-user.cliente-make-request">make-request</a> <a class="lib-member-link" href="#member-user.cliente-request-connection">request-connection</a></div><ol class="library-members"><li class="library-member"><a name="member-user.cliente-*host*"/><dl class="library-member-table"><dt class="library-member-name">*host*</dt><dd><div class="library-member-info"><span class="library-member-type">var</span> <span class="library-member-arglists"></span></div><div class="library-member-docs"/></dd></dl></li><li class="library-member"><a name="member-user.cliente-*port*"/><dl class="library-member-table"><dt class="library-member-name">*port*</dt><dd><div class="library-member-info"><span class="library-member-type">var</span> <span class="library-member-arglists"></span></div><div class="library-member-docs"/></dd></dl></li><li class="library-member"><a name="member-user.cliente-make-request"/><dl class="library-member-table"><dt class="library-member-name">make-request</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([request])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Makes different kinds of request based on the parameters.</div><div class="library-member-doc-line">		 request -- the petition to be fulfilled</div><div class="library-member-doc-line">		 dbname -- name for the local file(s)</div></div></dd></dl></li><li class="library-member"><a name="member-user.cliente-request-connection"/><dl class="library-member-table"><dt class="library-member-name">request-connection</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Asks the server for a database copy which will be stored on a local folder</div><div class="library-member-doc-line">		dbname -- name for the file containing the duplicated database (from server)</div></div></dd></dl></li></ol></div></div><div class="library"><a name="library-user.commonFunctions"/><div class="library-name"><span class="library-contents-toggle">[ <a id="library-contents-toggle-user.commonFunctions" href="javascript:toggle(&apos;library-contents-user.commonFunctions&apos;, &apos;library-contents-toggle-user.commonFunctions&apos;, &apos;-&apos;, &apos;+&apos;)">-</a> ] </span>user.commonFunctions</div><div class="library-contents" id="library-contents-user.commonFunctions"><div class="library-member-links"><a class="lib-member-link" href="#member-user.commonFunctions-addRow-table">addRow-table</a> <a class="lib-member-link" href="#member-user.commonFunctions-check-date">check-date</a> <a class="lib-member-link" href="#member-user.commonFunctions-check-num-fields">check-num-fields</a> <a class="lib-member-link" href="#member-user.commonFunctions-check-num-fields-find">check-num-fields-find</a> <a class="lib-member-link" href="#member-user.commonFunctions-format-date">format-date</a> <a class="lib-member-link" href="#member-user.commonFunctions-format-rate">format-rate</a> <a class="lib-member-link" href="#member-user.commonFunctions-upperLetter">upperLetter</a></div><ol class="library-members"><li class="library-member"><a name="member-user.commonFunctions-addRow-table"/><dl class="library-member-table"><dt class="library-member-name">addRow-table</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([number dictionary model])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Add a record into the table.</div><div class="library-member-doc-line"> 	number -- the record number that will be added</div><div class="library-member-doc-line"> 	dictionary -- a map with all the data to be added</div><div class="library-member-doc-line"> 	model -- the table model of the JTable where de rows will be added</div></div></dd></dl></li><li class="library-member"><a name="member-user.commonFunctions-check-date"/><dl class="library-member-table"><dt class="library-member-name">check-date</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([dd mm yyyy])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Checks the components of a date (month day year) passed as arguments to see if none of them gets out of bounds</div><div class="library-member-doc-line">	dd -- string number that represents the day</div><div class="library-member-doc-line">	mm -- string number that represents the month</div><div class="library-member-doc-line">	yyyy -- string number that represents the year</div></div></dd></dl></li><li class="library-member"><a name="member-user.commonFunctions-check-num-fields"/><dl class="library-member-table"><dt class="library-member-name">check-num-fields</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([vect])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Cheks if the string-values passed are all floats and returns a boolean indicating so.</div><div class="library-member-doc-line">	vect -- the vector containing the string-values to be checked</div></div></dd></dl></li><li class="library-member"><a name="member-user.commonFunctions-check-num-fields-find"/><dl class="library-member-table"><dt class="library-member-name">check-num-fields-find</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([vect])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Cheks if the string-values passed are all integers and returns a boolean indicating so.</div><div class="library-member-doc-line">	vect -- the vector containing the string-values to be checked</div></div></dd></dl></li><li class="library-member"><a name="member-user.commonFunctions-format-date"/><dl class="library-member-table"><dt class="library-member-name">format-date</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([dd mm yyyy])</span></div><div class="library-member-docs"><div class="library-member-doc-line">From the given day month and year, returns a string containing the date in a nice YYYY/MM/DD format</div><div class="library-member-doc-line">	dd -- string number representing the day</div><div class="library-member-doc-line">	mm -- string number representing the month</div><div class="library-member-doc-line">	yyyy -- string number representing the year</div></div></dd></dl></li><li class="library-member"><a name="member-user.commonFunctions-format-rate"/><dl class="library-member-table"><dt class="library-member-name">format-rate</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([rate])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Formats the string rate into a currency format</div><div class="library-member-doc-line">	 rate -- a string containing a number which will be returned with $ and two decimals</div></div></dd></dl></li><li class="library-member"><a name="member-user.commonFunctions-upperLetter"/><dl class="library-member-table"><dt class="library-member-name">upperLetter</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([word])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Capitalizes the first character of the given word and returns it</div></div></dd></dl></li></ol></div></div><div class="library"><a name="library-user.newMenu"/><div class="library-name"><span class="library-contents-toggle">[ <a id="library-contents-toggle-user.newMenu" href="javascript:toggle(&apos;library-contents-user.newMenu&apos;, &apos;library-contents-toggle-user.newMenu&apos;, &apos;-&apos;, &apos;+&apos;)">-</a> ] </span>user.newMenu</div><div class="library-contents" id="library-contents-user.newMenu"><div class="library-member-links"><a class="lib-member-link" href="#member-user.newMenu-create-menu-bar">create-menu-bar</a> <a class="lib-member-link" href="#member-user.newMenu-create-tool-bar">create-tool-bar</a> <a class="lib-member-link" href="#member-user.newMenu-filter-db">filter-db</a> <a class="lib-member-link" href="#member-user.newMenu-filter-table">filter-table</a> <a class="lib-member-link" href="#member-user.newMenu-get-current-rec-nos">get-current-rec-nos</a> <a class="lib-member-link" href="#member-user.newMenu-new-menu">new-menu</a> <a class="lib-member-link" href="#member-user.newMenu-row-for-rec">row-for-rec</a> <a class="lib-member-link" href="#member-user.newMenu-table-model">table-model</a></div><ol class="library-members"><li class="library-member"><a name="member-user.newMenu-create-menu-bar"/><dl class="library-member-table"><dt class="library-member-name">create-menu-bar</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([create-handler find-handler delete-handler exit-handler reload-handler])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Creates the menu bar for this application, receiving a each of the handlers</div><div class="library-member-doc-line">	that the components will use and return it.</div><div class="library-member-doc-line">	create-handler -- Indicates what happened when you press the create option</div><div class="library-member-doc-line">	find-handler -- Indicates what happened when you press the find option</div><div class="library-member-doc-line">	delete-handler -- Indicates what happened when you press the delete option</div><div class="library-member-doc-line">	exit-handler -- Indicates what happened when you press the exit option</div><div class="library-member-doc-line">	reload-handler -- Indicates what happened when you press the reload option</div></div></dd></dl></li><li class="library-member"><a name="member-user.newMenu-create-tool-bar"/><dl class="library-member-table"><dt class="library-member-name">create-tool-bar</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([create-handler find-handler delete-handler fields-combo-box find-text-field reload-handler])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Creates the tool bar for this application, receiving each of the handlers</div><div class="library-member-doc-line">	that the components will use.</div><div class="library-member-doc-line">	create-handler -- Indicates what happened when you press the create button</div><div class="library-member-doc-line">	find-handler -- Indicates what happened when you press the find button</div><div class="library-member-doc-line">	delete-handler -- Indicates what happened when you press the delete button</div><div class="library-member-doc-line">	fields-combo-box -- Indicates the options to make a search</div><div class="library-member-doc-line">	find-text-field -- Indicates the word you are looking for</div><div class="library-member-doc-line">	reload-handler -- Indicates what happened when you press the reload button</div></div></dd></dl></li><li class="library-member"><a name="member-user.newMenu-filter-db"/><dl class="library-member-table"><dt class="library-member-name">filter-db</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([data model dbname])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Shows the filtered values from the database in the current table.</div><div class="library-member-doc-line">	 data -- the dictionary with which the values will be filtered	</div><div class="library-member-doc-line">	 model -- the table model where the filter will be performed</div></div></dd></dl></li><li class="library-member"><a name="member-user.newMenu-filter-table"/><dl class="library-member-table"><dt class="library-member-name">filter-table</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([data model dbname])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Filters only the values present in the table</div><div class="library-member-doc-line">	 data -- the dictionary with which the values will be filtered</div><div class="library-member-doc-line">	 model -- the table model where the filter will be performed</div></div></dd></dl></li><li class="library-member"><a name="member-user.newMenu-get-current-rec-nos"/><dl class="library-member-table"><dt class="library-member-name">get-current-rec-nos</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([model])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Returns the rec-numbers of the rows already present in the table</div><div class="library-member-doc-line">	model -- the tabel model where rec-numbers will be looked-for</div></div></dd></dl></li><li class="library-member"><a name="member-user.newMenu-new-menu"/><dl class="library-member-table"><dt class="library-member-name">new-menu</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([dbname])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Displays the main menu</div></div></dd></dl></li><li class="library-member"><a name="member-user.newMenu-row-for-rec"/><dl class="library-member-table"><dt class="library-member-name">row-for-rec</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([rec-no model])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Returns the row number that has the corresponding rec-no.</div><div class="library-member-doc-line">	-1 if not found</div><div class="library-member-doc-line">	rec-no -- the record number to be looked for</div><div class="library-member-doc-line">	model -- the model table where the rec-no will be searched</div></div></dd></dl></li><li class="library-member"><a name="member-user.newMenu-table-model"/><dl class="library-member-table"><dt class="library-member-name">table-model</dt><dd><div class="library-member-info"><span class="library-member-type">fn</span> <span class="library-member-arglists">([])</span></div><div class="library-member-docs"><div class="library-member-doc-line">Returns the table model of this interace&apos;s JTable</div></div></dd></dl></li></ol></div></div></body></html>